home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 114 / PC Guia 114.iso / Software / Utils / The Gimp 2.2.1 / gimp-help-2-0.6-setup.exe / {app} / share / gimp / 2.0 / help / en / ch06s06s05.html < prev    next >
Encoding:
Extensible Markup Language  |  2004-12-19  |  11.7 KB  |  272 lines

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.   <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6.     <title>6.5.┬áNL Filter</title>
  7.     <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
  8.     <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
  9.     <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
  10.     <link rel="start" href="index.html" title="GIMP User Manual" />
  11.     <link rel="up" href="ch06s06.html" title="6.┬áEnhance filters" />
  12.     <link rel="prev" href="ch06s06s04.html" title="6.4.┬áDestripe" />
  13.     <link rel="next" href="ch06s06s06.html" title="6.6.┬áSharpen" />
  14.   </head>
  15.   <body>
  16.     <div xmlns="" class="navheader">
  17.       <table width="100%" summary="Navigation header">
  18.         <tr>
  19.           <th colspan="3" align="center" id="chaptername">6.┬áEnhance filters</th>
  20.         </tr>
  21.         <tr>
  22.           <td width="20%" align="left"><a accesskey="p" href="ch06s06s04.html">Prev</a>┬á</td>
  23.           <th width="60%" align="center" id="sectionname">6.5.┬áNL Filter</th>
  24.           <td width="20%" align="right">┬á<a accesskey="n" href="ch06s06s06.html">Next</a></td>
  25.         </tr>
  26.       </table>
  27.       <hr />
  28.     </div>
  29.     <div class="sect2" lang="en" xml:lang="en">
  30.       <div class="titlepage">
  31.         <div>
  32.           <div>
  33.             <h3 class="title"><a id="plug-in-nlfilt"></a>6.5.┬áNL Filter</h3>
  34.           </div>
  35.         </div>
  36.       </div>
  37.       <a id="id3478992" class="indexterm"></a>
  38.       <div class="mediaobject">
  39.         <img src="../images/filters/filters-enhance-nlfilter.png" />
  40.       </div>
  41.       <div class="simplesect" lang="en" xml:lang="en">
  42.         <div class="titlepage">
  43.           <div>
  44.             <div>
  45.               <h4 class="title"><a id="id3479014"></a>Overview</h4>
  46.             </div>
  47.           </div>
  48.         </div>
  49.         <p>
  50.       This filter is found in 
  51.       <span class="guimenu">Filters</span>-><span class="guisubmenu">Enhance</span>-><span class="guimenuitem"><span class="accel">N</span>L Filter</span>.
  52.       NL means "Non Linear". Derived 
  53.       from the Unix <span><b class="command">pnmnlfilt</b></span> program, it joins
  54.       smoothing, despeckle and sharpen enhancement functions. It works
  55.       on the whole image, not on the selection.
  56.     </p>
  57.         <p>
  58.       This is something of a swiss army knife filter. It has 3 distinct
  59.       operating modes. In all of the modes each pixel in the image is
  60.       examined and processed according to it and its surrounding pixels
  61.       values. Rather than using the 9 pixels in a 3x3 block, 7 hexagonal
  62.       area samples are taken, the size of the hexagons being controlled
  63.       by the radius parameter. A radius value of 0.3333 means that the 7
  64.       hexagons exactly fit into the center pixel (ie. there will be no
  65.       filtering effect). A radius value of 1.0 means that the 7 hexagons
  66.       exactly fit a 3x3 pixel array.
  67.     </p>
  68.       </div>
  69.       <div class="simplesect" lang="en" xml:lang="en">
  70.         <div class="titlepage">
  71.           <div>
  72.             <div>
  73.               <h4 class="title"><a id="id3479072"></a>Options</h4>
  74.             </div>
  75.           </div>
  76.         </div>
  77.         <div class="variablelist">
  78.           <dl>
  79.             <dt>
  80.               <span class="term">Preview</span>
  81.             </dt>
  82.             <dd>
  83.               <p>
  84.             When <span class="guilabel">Do preview</span> is checked, parameter
  85.             setting results are interactively displayed in preview.
  86.           </p>
  87.             </dd>
  88.             <dt>
  89.               <span class="term">Parameter settings</span>
  90.             </dt>
  91.             <dd>
  92.               <p>
  93.             </p>
  94.               <div class="itemizedlist">
  95.                 <ul type="disc">
  96.                   <li>
  97.                     <p>
  98.                   <span class="guilabel">Alpha</span>: Meaning of this value
  99.                   depends on the selected option.
  100.                 </p>
  101.                   </li>
  102.                   <li>
  103.                     <p>
  104.                   <span class="guilabel">Radius</span>:
  105.                   Controls the strength of the filter (0.33-1.00). 
  106.                 </p>
  107.                   </li>
  108.                 </ul>
  109.               </div>
  110.               <p>
  111.           </p>
  112.             </dd>
  113.           </dl>
  114.         </div>
  115.       </div>
  116.       <div class="simplesect" lang="en" xml:lang="en">
  117.         <div class="titlepage">
  118.           <div>
  119.             <div>
  120.               <h4 class="title"><a id="id3479142"></a>Operating Modes</h4>
  121.             </div>
  122.           </div>
  123.         </div>
  124.         <p>
  125.       This filter can perform several distinct functions, depending on
  126.       the value of the parameter <i class="parameter"><tt>alpha</tt></i>.
  127.     </p>
  128.         <div class="variablelist">
  129.           <dl>
  130.             <dt>
  131.               <span class="term">Alpha trimmed mean filter. (0.0 <=
  132.       <i class="parameter"><tt>alpha</tt></i> <= 0.5)</span>
  133.             </dt>
  134.             <dd>
  135.               <p>
  136.         The value of the center pixel will be replaced by the mean of
  137.         the 7 hexagon values, but the 7 values are sorted by size and
  138.         the top and bottom <i class="parameter"><tt>alpha</tt></i> portion of the 7
  139.         are excluded from the mean. This implies that an
  140.         <i class="parameter"><tt>alpha</tt></i> value of 0.0 gives the same sort of
  141.         output as a normal convolution (ie. averaging or smoothing
  142.         filter), where <i class="parameter"><tt>radius</tt></i> will determine the
  143.         "strength" of the filter. A good value to start from for subtle
  144.         filtering is <i class="parameter"><tt>alpha</tt></i> = 0.0,
  145.         <i class="parameter"><tt>radius</tt></i> = 0.55.  For a more blatant
  146.         effect, try <i class="parameter"><tt>alpha</tt></i> 0.0 and
  147.         <i class="parameter"><tt>radius</tt></i> 1.0.
  148.       </p>
  149.               <p>
  150.         An <i class="parameter"><tt>alpha</tt></i> value of 0.5 will cause the
  151.         median value of the 7 hexagons to be used to replace the center
  152.         pixel value. This sort of filter is good for eliminating "pop"
  153.         or single pixel noise from an image without spreading the noise
  154.         out or smudging features on the image. Judicious use of the
  155.         <i class="parameter"><tt>radius</tt></i> parameter will fine tune the
  156.         filtering. Intermediate values of <i class="parameter"><tt>alpha</tt></i>
  157.         give effects somewhere between smoothing and "pop" noise
  158.         reduction. For subtle filtering try starting with values of
  159.         <i class="parameter"><tt>alpha</tt></i> = 0.4,
  160.         <i class="parameter"><tt>radius</tt></i> = 0.6.  For a more blatant effect
  161.         try <i class="parameter"><tt>alpha</tt></i> = 0.5,
  162.         <i class="parameter"><tt>radius</tt></i> = 1.0 .
  163.       </p>
  164.             </dd>
  165.             <dt>
  166.               <span class="term">Optimal estimation smoothing. (1.0 <=
  167.       <i class="parameter"><tt>alpha</tt></i> <= 2.0)</span>
  168.             </dt>
  169.             <dd>
  170.               <p>
  171.         This type of filter applies a smoothing filter adaptively over
  172.         the image. For each pixel the variance of the surrounding
  173.         hexagon values is calculated, and the amount of smoothing is
  174.         made inversely proportional to it. The idea is that if the
  175.         variance is small then it is due to noise in the image, while if
  176.         the variance is large, it is because of "wanted" image features.
  177.         As usual the  <i class="parameter"><tt>radius</tt></i> parameter  controls
  178.         the effective radius, but it probably advisable  to  leave  the
  179.         radius between 0.8 and 1.0 for the variance calculation to be
  180.         meaningful. The <i class="parameter"><tt>alpha</tt></i> parameter sets the
  181.         noise threshold, over which less smoothing will be done. This
  182.         means that small values of <i class="parameter"><tt>alpha</tt></i> will
  183.         give the most subtle filtering effect, while large values will
  184.         tend to smooth all parts of the image. You could start with
  185.         values like 
  186.         <tt class="code">
  187.           <i class="parameter"><tt>alpha</tt></i>  =  1.2
  188.         </tt>,
  189.         <tt class="code">
  190.           <i class="parameter"><tt>radius</tt></i> = 1.0 
  191.         </tt>,
  192.         and try increasing or decreasing the
  193.         <i class="parameter"><tt>alpha</tt></i> parameter  to  get the desired
  194.         effect. This type of filter is best for filtering out dithering
  195.         noise in both bitmap and color images. 
  196.       </p>
  197.             </dd>
  198.             <dt>
  199.               <span class="term">Edge enhancement. (-0.1 >= <i class="parameter"><tt>alpha</tt></i> >=
  200.       -0.9)</span>
  201.             </dt>
  202.             <dd>
  203.               <p>
  204.         This is the opposite type of filter to the smoothing filter. It
  205.         enhances edges. The <i class="parameter"><tt>alpha</tt></i> parameter
  206.         controls the amount of edge enhancement, from subtle (-0.1) to
  207.         blatant (-0.9). The <i class="parameter"><tt>radius</tt></i> parameter
  208.         controls the effective radius as usual, but useful values are
  209.         between 0.5 and 0.9. Try starting with values of
  210.         <tt class="code">
  211.           <i class="parameter"><tt>alpha</tt></i> = 0.3
  212.         </tt>,
  213.         <tt class="code">
  214.           <i class="parameter"><tt>radius</tt></i> = 0.8
  215.         </tt>.
  216.       </p>
  217.             </dd>
  218.             <dt>
  219.               <span class="term">Combination use</span>
  220.             </dt>
  221.             <dd>
  222.               <p>
  223.         The various operating modes can be used one after the other to
  224.         get the desired result. For instance to turn a monochrome
  225.         dithered image into grayscale image you could try one or two
  226.         passes of the smoothing filter, followed by a pass of the
  227.         optimal estimation filter, then some subtle edge enhancement.
  228.         Note that using edge enhancement is only likely to be useful
  229.         after  one  of  the  non-linear filters (alpha trimmed mean or
  230.         optimal estimation filter), as edge enhancement is the direct
  231.         opposite of smoothing. 
  232.       </p>
  233.               <p>
  234.         For reducing color quantization noise in images (ie. turning
  235.         .gif files back into 24 bit files) you could try a pass of the
  236.         optimal estimation filter (<i class="parameter"><tt>alpha</tt></i> 1.2,
  237.         <i class="parameter"><tt>radius</tt></i> 1.0), a pass of the median filter
  238.         (<i class="parameter"><tt>alpha</tt></i> 0.5, <i class="parameter"><tt>radius</tt></i>
  239.         0.55), and possibly a pass of the edge enhancement filter.
  240.         Several passes of the optimal estimation filter with declining
  241.         <i class="parameter"><tt>alpha</tt></i> values are more effective than a
  242.         single pass with a large <i class="parameter"><tt>alpha</tt></i> value. As
  243.         usual, there is a tradeoff between filtering effectiveness and
  244.         losing detail. Experimentation is encouraged.
  245.       </p>
  246.             </dd>
  247.           </dl>
  248.         </div>
  249.       </div>
  250.     </div>
  251.     <div class="navfooter">
  252.       <hr />
  253.       <table width="100%" summary="Navigation footer">
  254.         <tr>
  255.           <td width="40%" align="left"><a accesskey="p" href="ch06s06s04.html">Prev</a>┬á</td>
  256.           <td width="20%" align="center">
  257.             <a accesskey="u" href="ch06s06.html">Up</a>
  258.           </td>
  259.           <td width="40%" align="right">┬á<a accesskey="n" href="ch06s06s06.html">Next</a></td>
  260.         </tr>
  261.         <tr>
  262.           <td width="40%" align="left" valign="top">6.4.┬áDestripe┬á</td>
  263.           <td width="20%" align="center">
  264.             <a accesskey="h" href="index.html">Home</a>
  265.           </td>
  266.           <td width="40%" align="right" valign="top">┬á6.6.┬áSharpen</td>
  267.         </tr>
  268.       </table>
  269.     </div>
  270.   </body>
  271. </html>
  272.